package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysUserJudges;
import com.ruoyi.system.domain.SysUsers;
import com.ruoyi.system.domain.SyseEventsPosted;
import com.ruoyi.system.domain.mongodb.Users;

import java.util.List;
import java.util.Map;

public interface ISysUsersService{

    /**
     * 根据教师id查询教师评审员信息
     */
    public SysUsers queryUserByTid(SysUsers sysUsers);

    /**
     * 查询评委
     * @return
     */
    public List<SysUserJudges> readUserAll(Integer epid,String nickName, String epschool,Integer pageNum,Integer pageSize);
    /**
     * 修改评委状态
     */
    public long updateStatus(Integer userId);

    /**
     * 查询所有赛事
     */
    public Map<String,Object> readEventAll(SyseEventsPosted syseEventsPosted);

    public List<SysUsers>  readNoUser(SysUsers sysUsers,Integer pageNum,Integer pageSize);
    /**
     * 查询不是评委
     * @param
     * @return
     */
    public List<Users>  readNoUserForSchool(SysUsers sysUsers, String epschool, Integer pageNum, Integer pageSize);


    /**
     * 读取一条评委信息
     * @param
     * @return
     */
    public SysUsers readUserById(Integer userId);

    /**
     * 新增一条评委信息
     * @param sysUsers
     * @return
     */
    public long insertUser(SysUsers sysUsers);

    /**
     *读取要添加的评委信息
     * @return
     */
    public SysUsers readInsertUser(Integer userId);

    /**
     * 添加中间表数据
     * @param userId
     * @param epid
     * @return
     */
    public long insertUserEvent(long userId,String epid);

    /**
     * 获取最后添加Id
     * @return
     */
    public long readLastUserId();

    /**
     * 删除赛事表及中间表
     * @return
     */
    public long deleteUser(long userId);

    long addJudges(SysUsers users);

    List<SyseEventsPosted> readEvents(String schoolName);
}
